<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>TP1-Algo:  Fichier source de TesteurListePortes.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">TP1-Algo
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_testeur_liste_portes_8cpp_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">TesteurListePortes.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_testeur_liste_portes_8cpp.html">Aller à la documentation de ce fichier.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;gtest/gtest.h&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_liste_portes_8h.html">ListePortes.h</a>&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_piece_8h.html">Piece.h</a>&quot;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">using namespace </span>TP1;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">   17</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ConstructeurDefaut_ListePortesVide)</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;{</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    ASSERT_TRUE(listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#a5e761686cedbf75685ac04850d73a588">estVideListePortes</a>());</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;}</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#a33fcab8e03b60882495eb0c002b5b4af">   32</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ConstructeurCopie_ListePortesIdentique)</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest2(listeTest);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    ASSERT_EQ(1,listeTest2.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;}</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#aa9381c4066b0c716b4f8c1b1a44479a9">   41</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ConstructeurCopie_AjoutDePlusieursPortes_CopieIdentique)</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> l;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> p1(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">Vert</a>, NULL);</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> p2(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">Bleu</a>, NULL);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> p3(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>, NULL);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> p4(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">Jaune</a>, NULL);</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    l.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(p1);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    l.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(p2);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    l.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(p3);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    l.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(p4);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> l2(l);</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    ASSERT_EQ(l.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>(), l2.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;Liste 1 :&quot;</span> &lt;&lt; endl;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    l.<a class="code" href="class_t_p1_1_1_liste_portes.html#a252a9fe6394c81f153505b1dc927620c">afficherPortes</a>();</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    cout &lt;&lt; <span class="stringliteral">&quot;Liste 2 :&quot;</span> &lt;&lt; endl;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    l2.<a class="code" href="class_t_p1_1_1_liste_portes.html#a252a9fe6394c81f153505b1dc927620c">afficherPortes</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#ad6b5eb6cd4166fa082d456b49bf82cf2">   73</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ajoutePorte_ajoute1Porte_devientTaille1)</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    ASSERT_EQ(1,listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;}</div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#ab10d03a33e61c913d0f75c8116fdec49">   80</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ajoutePorte_ajoute2PortesDifferentes_devientTaille2)</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;{</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> * pc = <span class="keyword">new</span> <a class="code" href="class_t_p1_1_1_piece.html">Piece</a>();</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po1;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po2(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>,pc);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po1);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po2);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    ASSERT_EQ(2,listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;}</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#a165e8009fd16040e15d07dcce5499ca2">   90</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ListeVide_taille0)</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;{</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    ASSERT_EQ(0,listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;}</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#a0757e9a09b146cd5378ca4ea219fb3af">   95</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, ajoutePorte_2portesIdentiques_invalide)</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po1;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po2;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po1);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    ASSERT_THROW(listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po2), logic_error);</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;}</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#abbe088314d2d524b3089331e3119749f">  112</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, supprimePorte)</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;{</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> * pc = <span class="keyword">new</span> <a class="code" href="class_t_p1_1_1_piece.html">Piece</a>();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po1;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po2(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>,pc);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po1);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po2);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#aec8cf7767961be2ec5f4a7cf66924990">supprimePorte</a>(0);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    ASSERT_EQ(1,listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">tailleListePortes</a>());</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;}</div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#a670308e8fe19bf168b9068eb232db9a2">  132</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, estVideListePortes_ListeVide)</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    ASSERT_TRUE(listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#a5e761686cedbf75685ac04850d73a588">estVideListePortes</a>());</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;}</div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#a33378244232d015459041732ed50381d">  137</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, estVideListePortes_ListeNonVide)</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;{</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po1;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po1);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    ASSERT_FALSE(listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#a5e761686cedbf75685ac04850d73a588">estVideListePortes</a>());</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="_testeur_liste_portes_8cpp.html#aa9d1c2ee85a48354a6ca41b7c4e05933">  152</a></span>&#160;<a class="code" href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a>(<a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a>, elementAt)</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;{</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <a class="code" href="class_t_p1_1_1_liste_portes.html">ListePortes</a> listeTest;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <a class="code" href="class_t_p1_1_1_piece.html">Piece</a> * pc = <span class="keyword">new</span> <a class="code" href="class_t_p1_1_1_piece.html">Piece</a>();</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <a class="code" href="class_t_p1_1_1_porte.html">Porte</a> po2(<a class="code" href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">Rouge</a>,pc);</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">ajoutePorte</a>(po2);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    ASSERT_TRUE(po2==listeTest.<a class="code" href="class_t_p1_1_1_liste_portes.html#a333ec780cee748e7607e2ebbb8c93bab">elementAt</a>(1));</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;}</div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea595da0cd6755470faa7557f03b500a63">TP1::Rouge</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_af557df32fa1b504d30a0beb0ca8eaba7"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#af557df32fa1b504d30a0beb0ca8eaba7">TP1::ListePortes::ajoutePorte</a></div><div class="ttdeci">void ajoutePorte(Porte &amp;p)</div><div class="ttdoc">ajoute un objet Porte à la fin de la listePortes. </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00206">ListePortes.cpp:206</a></div></div>
<div class="ttc" id="_piece_8h_html"><div class="ttname"><a href="_piece_8h.html">Piece.h</a></div><div class="ttdoc">Ce fichier contient l&#39;interface d&#39;une pièce. </div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_aea2f8a070489b7379359652f947acd2c"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#aea2f8a070489b7379359652f947acd2c">TP1::ListePortes::tailleListePortes</a></div><div class="ttdeci">int tailleListePortes() const </div><div class="ttdoc">méthode qui retourne la taille de la listePortes </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00028">ListePortes.cpp:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_porte_html"><div class="ttname"><a href="class_t_p1_1_1_porte.html">TP1::Porte</a></div><div class="ttdoc">classe représentant une porte colorée dans un labyrinthe. </div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00036">Porte.h:36</a></div></div>
<div class="ttc" id="_testeur_liste_portes_8cpp_html_ab6cf2402891beec1b6407572107de9a6"><div class="ttname"><a href="_testeur_liste_portes_8cpp.html#ab6cf2402891beec1b6407572107de9a6">TEST</a></div><div class="ttdeci">TEST(ListePortes, ConstructeurDefaut_ListePortesVide)</div><div class="ttdoc">Test: Constructeur par defaut. </div><div class="ttdef"><b>Definition:</b> <a href="_testeur_liste_portes_8cpp_source.html#l00017">TesteurListePortes.cpp:17</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eaee026ef535817b182f6343fd5f39f3f0">TP1::Bleu</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_aec8cf7767961be2ec5f4a7cf66924990"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#aec8cf7767961be2ec5f4a7cf66924990">TP1::ListePortes::supprimePorte</a></div><div class="ttdeci">void supprimePorte(int porteASupprimer)</div><div class="ttdoc">supprime une porte de listePortes </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00249">ListePortes.cpp:249</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690ea17294929f25c6255c90ba75bc66aad18">TP1::Jaune</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_piece_html"><div class="ttname"><a href="class_t_p1_1_1_piece.html">TP1::Piece</a></div><div class="ttdoc">Piece dans un labyrinthe ayant un nom unique et une liste de portes qui partent de cette pièce...</div><div class="ttdef"><b>Definition:</b> <a href="_piece_8h_source.html#l00028">Piece.h:28</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_a333ec780cee748e7607e2ebbb8c93bab"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#a333ec780cee748e7607e2ebbb8c93bab">TP1::ListePortes::elementAt</a></div><div class="ttdeci">Porte elementAt(int pos) const </div><div class="ttdoc">retourne l&#39;élément à une position demandée de la liste </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00158">ListePortes.cpp:158</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html">TP1::ListePortes</a></div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8h_source.html#l00020">ListePortes.h:20</a></div></div>
<div class="ttc" id="_liste_portes_8h_html"><div class="ttname"><a href="_liste_portes_8h.html">ListePortes.h</a></div><div class="ttdoc">Ce fichier contient l&#39;interface d&#39;une liste de portes. </div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_a5e761686cedbf75685ac04850d73a588"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#a5e761686cedbf75685ac04850d73a588">TP1::ListePortes::estVideListePortes</a></div><div class="ttdeci">bool estVideListePortes() const </div><div class="ttdoc">retourne vrai si la listePortes est vide, faux sinon </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00037">ListePortes.cpp:37</a></div></div>
<div class="ttc" id="namespace_t_p1_html_a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20"><div class="ttname"><a href="namespace_t_p1.html#a8b5ef3e0301394a6503b5b11ab59690eabe0ea9860158ec92d69b0950c9a77a20">TP1::Vert</a></div><div class="ttdef"><b>Definition:</b> <a href="_porte_8h_source.html#l00025">Porte.h:25</a></div></div>
<div class="ttc" id="class_t_p1_1_1_liste_portes_html_a252a9fe6394c81f153505b1dc927620c"><div class="ttname"><a href="class_t_p1_1_1_liste_portes.html#a252a9fe6394c81f153505b1dc927620c">TP1::ListePortes::afficherPortes</a></div><div class="ttdeci">void afficherPortes() const </div><div class="ttdoc">permet d&#39;afficher la couleur de chaque porte de la liste en console. </div><div class="ttdef"><b>Definition:</b> <a href="_liste_portes_8cpp_source.html#l00075">ListePortes.cpp:75</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_testeur_liste_portes_8cpp.html">TesteurListePortes.cpp</a></li>
    <li class="footer">Généré le Dimanche 8 Juin 2014 19:37:05 pour TP1-Algo par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
